package com.ruoyi.charge.service.impl;

import com.ruoyi.charge.mapper.ChargeMapper;
import com.ruoyi.charge.service.ChargeService;
import com.ruoyi.doctor.domain.DoctorPatient;
import com.ruoyi.pssd.domain.PsdDrug;
import com.ruoyi.system.domain.SysCheck;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class ChargeServiceImpl implements ChargeService {
    @Autowired
    private ChargeMapper chargeMapper;

    @Override
    public DoctorPatient getPatientByRegisterId(String registerNumber) {
        return chargeMapper.getPatientByRegisterId(registerNumber);
    }

    @Override
    public List<PsdDrug> getDrugsById(int patientId) {
        return chargeMapper.getDrugsByPatientId(patientId);
    }

    @Override
    public List<SysCheck> getChecksById(int patientId) {
        return chargeMapper.getChecksByPatientId(patientId);
    }
}
